
Missing route
Reported by Gaël Deest | June 8th, 2009 @ 10:05 AM
Hi,
I just created a new rails project with restful_authentication. I created a new authentication system with:
./script/generate authenticated users session
and noticed that no route was generated for the 'activate' method of the 'users' controller, which means the default activation URL doesn't work:
"http://YOURSITE/activate/#{users.activation_code}"
Adding this line to routes.rb solves the problem:
map.activate '/activate/:activation_code', :controller => 'users', :action => 'activate'
Hope this helps !
Gaël DEEST
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Restful Authentication Generator
This widely-used plugin provides a foundation for securely managing user
authentication:
* Login / logout
* Secure password handling
* Account activation by validating email
* Account approval / disabling by admin
* Rudimentary hooks for authorization and access control.
http://github.com/technoweenie/restful-authentication/tree